﻿using Domain.IRepositorys;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Application.App
{
    public class TestApplication
    {
        public IUserRepository userRepository { get; set; }
        public IAdminRepository adminRepository { get; set; }
        public void Test01()
        {
            var u = userRepository.GetByKey(1);

            u.TaskCount++;

            var u2 = userRepository.GetByKey(1);


        }


        public void Test02()
        {
            var admin = adminRepository.Entities.FirstOrDefault(a => a.AdminName == "admin" && a.AdminPass == "admin");

        }
    }
}
